package com.mytest.test;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ChangeMethodParam {

    public static void main(String[] args) {
        Boolean b1 = false;
        boolean b2 = false;
        Entity entity = new Entity();
        entity.setB(b1);
        changeParam(entity);
        log.info("b1:{}, b2:{}", entity.getB());

    }

    @Data
    static
    class Entity{
        private Boolean b;
        private String c;
    }

    private static void changeParam(Entity entity){
        entity.setB(true);
    }
}
